package com.zero.guava.samples.ComparisonChainDemo;

/**
 * Guava中ComparisonChain类的学习和使用
 */
public class ComparisonChainDemo {

    public static void main(String[] args) {
        Girl g1 = new Girl("lisa", 175.00, "nice");
        Girl g2 = new Girl("lisa", 175.00, "beauty");
        //两个girl的face不相同
        System.out.println(g1.compareTo(g2) == 0);//false


        Girl2 g3 = new Girl2("lisa", 175.00, "nice");
        Girl2 g4 = new Girl2("lisa", 175.00, "nice");
        //两个girl的face不相同
        System.out.println(g3.compareTo(g4) == 0);//false
    }


}
